<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>固定定位</title>
    <style>
        #d1{
            width: 1000px;
            height: 50px;
            background-color: red;
            /*固定位置*/
            position:fixed;
            top: 0;

        }
        #d2{
            width: 50px;
            height: 200px;
            background-color: blue;
            position: fixed;
            right: 20px;
            bottom: 50px;


        }



    </style>
</head>
<body>
<div id="d1"></div>
<div id="d2"></div>
<img src="../mm2=0.jpg" alt="">
<img src="../mm2=0.jpg" alt="">
<img src="../mm2=0.jpg" alt="">
<img src="../mm2=0.jpg" alt="">
<img src="../mm2=0.jpg" alt="">


</body>
</html>